<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\AfterSalesRequest>
 */
class AfterSalesRequestFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'order_id' => \App\Models\Order::factory(),
            'user_id' => \App\Models\User::factory(),
            'type' => $this->faker->randomElement(['return', 'refund', 'exchange']),
            'reason' => $this->faker->sentence(),
            'status' => 'pending',
            'requested_amount' => $this->faker->randomFloat(2, 50, 500),
        ];
    }
}
